package com.example.demo.controller;

import org.springframework.web.bind.annotation.*;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@RestController
@RequestMapping("/test")
public class TestController {

    private static final Logger log = LoggerFactory.getLogger(TestController.class);

    @GetMapping("/hello")
    public String hello() {
        log.info("hello接口被调用");
        return "Hello World";
    }

    @GetMapping("/auth")
    public String auth() {
        log.info("auth测试接口被调用");
        return "Auth Test";
    }
}